
<template>
  <el-menu
    :default-active="activeIndex"
    router
    mode="horizontal"
    @select="handleSelect"
    @click ="handleClick" 
    >
    <el-menu-item index="/gtp-lint" route="/gtp-lint">
      GtpLint
    </el-menu-item>
    <el-menu-item index="/cstool" route="/cstool">
      CsTool
    </el-menu-item>
  </el-menu>

</template>

<script setup lang="ts">
import { RouterLink } from 'vue-router'
import { ref } from 'vue'

const activeIndex = ref('1')
const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClick = (key: string, keyPath: string[], active: boolean) => {
  console.log(key, keyPath)
}

</script>

<style scoped>
</style>
